package com.gaohe.service.impl;

import com.gaohe.pojo.StadCard;
import com.gaohe.pojo.StadMember;
import com.gaohe.mapper.StadMemberMapper;
import com.gaohe.pojo.SysUser;
import com.gaohe.service.StadMemberService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liu
 * @since 2025-04-12
 */
@Service
public class StadMemberServiceImpl extends ServiceImpl<StadMemberMapper, StadMember> implements StadMemberService {

    @Autowired
    private StadMemberMapper stadMemberMapper;
    @Override
    public List<SysUser> getVipList(Long shopid) {
        return stadMemberMapper.getVipList(shopid);
    }

    @Override
    public List<StadMember> getMemberList(Long shopKeepId) {
        return stadMemberMapper.getMemberList(shopKeepId);
    }

    @Override
    public List<StadMember> getMemberAndBuyCard(Long id) {
        return stadMemberMapper.getMemberAndBuyCard(id);
    }

    @Override
    public List<StadMember> getMemberAndRecord(Long id) {
        return stadMemberMapper.getMemberAndRecord(id);
    }

    @Override
    public List<StadCard> getMemberAndCard(Long id) {
        return stadMemberMapper.getMemberAndCard(id);
    }

    @Override
    public List<SysUser> searchAllByName(Long id, String name) {
        return stadMemberMapper.searchAllByName(id,name);
    }
}
